﻿<%@ Page Title="Inventário" Language="vb" AutoEventWireup="false" MasterPageFile="~/Dainfo.Master" CodeBehind="Inventario.aspx.vb" Inherits="Dainfo.ControleEstoque.Web.Inventario" %>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderTituloPagina" runat="server">
    <p>
    Inventário de Produtos</p>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPrincipal" runat="server">

    <div style="width: 700px;">
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="ViewSucesso" runat="server">
                <asp:Label ID="lblMessage" runat="server" EnableViewState="false" ForeColor="Green"></asp:Label>
                <br />
                <br />
                Ir para página de
                <asp:HyperLink ID="HyperLink1" runat="server" 
                    NavigateUrl="~/Produtos/PesquisaProdutos.aspx">Consulta de Produtos</asp:HyperLink>
            </asp:View>
            <asp:View ID="viewInventario" runat="server">
                <asp:GridView ID="gvProduto" runat="server" CssClass="grid" BackColor="#DEBA84" BorderColor="#DEBA84"
                    BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" AutoGenerateColumns="False">
                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                    <Columns>
                        <asp:BoundField DataField="Codigo" HeaderText="Código" InsertVisible="False" ReadOnly="True" />
                        <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                        <asp:TemplateField HeaderText="Quantidade">
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Width="100px" CssClass="inventario-qtd"
                                    Text='<%# Bind("Quantidade") %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <table>
                    <tr>
                        <td>
                            <asp:Button ID="btnSalvar" runat="server" Text="Gravar Quantidades" />
                        </td>
                        <td>
                            <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" 
                                PostBackUrl="~/Home.aspx" />
                        </td>
                    </tr>
                </table>
                <asp:Label ID="lblErro" runat="server" EnableViewState="false" ForeColor="Red"></asp:Label>
            </asp:View>
        </asp:MultiView>
    </div>
&nbsp;
    

</asp:Content>
<asp:Content ID="Content4" runat="server" contentplaceholderid="head">

<style type="text/css">
    .inventario-qtd
    {
        text-align:center;
    }
    </style>

</asp:Content>

